<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
  <tr>
    <td>照片</td>
    <td><img src="" alt=""></td>

  </tr>
  <tr>
    <td>姓名:</td>
    <td id="name_td"></td>
  </tr>
  <tr>
    <td>年龄</td>
    <td id="age_td"></td>
  </tr>
  <tr>
    <td>好友</td>
    <td>
      <ul id="friend_ul"></ul>
    </td>
  </tr>
</table>
<input type="button" value="请求数据" onclick="f()">
<script>
  function f(){
    let user = {name:"常老师",age:18,pic:"img_1.png",friends:["传奇","半神","共工"]}
    let img = document.querySelector("img");
  }
</script>
</body>
</html>